let t = require;
let e = module;
let o = e.exports;
o.default = e.exports;

('use strict');
console.log('start');
var _n117,
  i =
    (this && this.__extends) ||
    ((_n117 = function n(t, e) {
      return (_n117 =
        Object.setPrototypeOf ||
        ({
          __proto__: []
        } instanceof Array &&
          function (t, e) {
            t.__proto__ = e;
          }) ||
        function (t, e) {
          for (var o in e) {
            Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
          }
        })(t, e);
    }),
    function (t, e) {
      function o() {
        this.constructor = t;
      }
      _n117(t, e),
        (t.prototype =
          null === e
            ? Object.create(e)
            : ((o.prototype = e.prototype), new o()));
    });
Object.defineProperty(o, '__esModule', {
  value: !0
}),
  (o.LevelCom = void 0);
var r = t('UIComponent'),
  a = t('ResMrg'),
  s = (function (t) {
    function e() {
      return (null !== t && t.apply(this, arguments)) || this;
    }
    return (
      i(e, t),
      Object.defineProperty(e.prototype, 'level', {
        get: function get() {
          return this._level;
        },
        set: function set(t) {
          this._level != t && ((this._level = t), this.refresh());
        },
        enumerable: !1,
        configurable: !0
      }),
      (e.prototype.refresh = function () {
        var t = this._level.toString();
        if ((this.view.removeAllChildren(), this._level >= 0))
          for (var e = 0; e < t.length; e++) {
            var o = new cc.Node(),
              n = o.addComponent(cc.Sprite);
            a.ResMrg.loadSpriteByAtlas(n, 'Atlas/Battle', t[e]),
              this.view.addChild(o);
          }
      }),
      e
    );
  })(r.UIComponent);
(o.LevelCom = s), console.log('end');
module.exports = e.exports;
